Test Series - java script

Test Number 73/92

Q: How many read-only attributes are present in the navigator object?
A. 1
B. 2
C. 3
D. 4
Solution: The navigator object contains information about the browser. There are a total of 2 read-only attributes present in the navigator object namely:
redirectCount
type.
Q: Why are HTTP redirects significant?
A. TCP connection available
B. Complete roundtrip absent
C. Complete roundtrip present
D. TCP connection not available
Solution: HTTP redirects are significant because they cause a complete roundtrip for each redirect. The original request is returned from the web server as either a 301 or a 302 with the path to the new location.
Q: Where does the DNS reply go to in a single HTTP redirect?
A. Browser
B. Client
C. Server
D. DNS Server
Solution: DNS is a query/response protocol. The client queries information (for example the IP address corresponding to www.google.com) in a single UDP request. The DNS reply goes to the Browser in a single HTTP redirect.
Q: How can one access the redirectCount property?
A. navigation.redirectCount
B. performance.navigation.redirectCount
C. performance.redirectCount
D. redirectCount
Solution: The redirectCount property can be accessed as performance.navigation.redirectCount. The PerformanceNavigation.redirectCount read-only property returns an unsigned short representing the number of REDIRECTs done before reaching the page.
Q: How many constant values can the property type be represented?
A. 2
B. 3
C. 4
D. 5
Solution: The type property sets or returns the value of the type attribute of an  element. The type attribute specifies the Internet media type (formerly known as MIME type) of the object. Totally 4 constant values can be represented by the property type.
               
        
Q: Which of the following constants has the value 255?
A. TYPE_NAVIGATE
B. TYPE_RELOAD
C. TYPE_BACK_FORWARD
D. TYPE_RESERVED
Solution: TYPE_BACK_FORWARD performs navigation through a history traversal operation. TYPE_RESERVED Has the value of 255 and is a catch-all for any navigation type not defined above.
Q: What is the purpose of the constant TYPE_RELOAD?
A. Reload performed
B. Reload not performed
C. Reload must be performed
D. Reload may be performed
Solution: TYPE_RELOAD: Has the value of 1, indicating that the current page was arrived at via a reload operation. TYPE_RELOAD performs navigation through the reload operation or the location.reload() method.
Q: What does the constant TYPE_BACK_FORWRD indicate?
A. Navigation via browser history
B. Navigation via user request
C. Navigation via URL
D. Navigation via load operation
Solution: TYPE_BACK_FORWARD performs navigation through a history traversal operation. TYPE_BACK_FORWARD Has the value of 2, indicating that the page was navigated to via the browser history, either using the back or forward buttons or programmatically through the browser’s history object.
Q: Which of the following constants hold the value 2?
A. TYPE_NAVIGATE
B. TYPE_RELOAD
C. TYPE_BACK_FORWARD
D. TYPE_RESERVED
Solution: TYPE_BACK_FORWARD performs navigation through a history traversal operation. TYPE_BACK_FORWARD: Has the value of 2, indicating that the page was navigated to via the browser history, either using the back or forward buttons or programmatically through the browser’s history object.
Q: Where does the DNS Lookup direct to ?
A. Browser
B. Client
C. Server
D. DNS Server
Solution: DNS is a query/response protocol. The client queries an information (for example the IP address corresponding to www.google.com) in a single UDP request. The DNS Lookup directs to the DNS Server.

You Have Score    /10